package com.econtact.business.dao;

import java.sql.SQLException;

import com.econtact.business.entity.User;


public interface UserDao {

	/**
	 * 注册用户
	 * @param user
	 */
	public int insertUser(User user) throws SQLException;
	
	 /**
	  * 验证用户名密码
	  * @param loginName
	  * @param pwd
	  * @return
	  */
	public boolean validateUser(String loginName,String pwd);
	
	/**
	 * 注册验证用户名是否已经存在
	 * @param name
	 * @return
	 */
	public boolean validateUserNameIsExist(String name);
}